
package cn.stylefeng.guns.modular.service.impl;

import cn.stylefeng.guns.modular.mapper.RegisterMapper;
import cn.stylefeng.guns.modular.service.RegisterService;
import cn.stylefeng.guns.sys.modular.system.entity.User;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@Service
public class RegisterServiceImpl implements RegisterService {

    @Resource
    private RegisterMapper registerMapper;


    /**
     * 保存注册用户
     * @param user
     * @return
     */
    public int insertRegister(User user){
        return registerMapper.insertRegister(user);
    }

    /**
     * 根据用户名查询
     * @param account
     * @return
     */
    public User selectByAccount(String account){
        return  registerMapper.selectByAccount(account);
    }

}

